package cn.edu.cqytxy.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author yinjw
 */
public class AuthFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

        // 初始化方法
    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        // 可在doFilter方法下面写相关的业务逻辑过滤

    }

    @Override
    public void destroy() {

        // authFilter销毁时被调用
    }
}
